#ifndef __MBTYPE_H__
#define __MBTYPE_H__

#include <stdint.h>

#define MSG_MSG(num, str, val)
#define MSG_WAR(num, str, val)
#define MSG_ERR(num, str, val)

#define SWAP16(x) (((x) >> 8) | ((x) << 8))

typedef struct
{
    uint16_t x;
    uint16_t y;
    uint16_t len;
    uint8_t node;
} mbap_t;
typedef struct
{
    mbap_t mbap;
    uint8_t fun;
    uint8_t data[253];
} mbtcp_t;

#endif /* __MB_TYPE_H__ */
